<?php
	use\ampleharvest\code\cConfig;
	require_once dirname(dirname(dirname(__FILE__))) . '/config/cConfig.php';

	require_once dirname(dirname(dirname(__FILE__))) . '/classes/cAmpleHarvestLog.php';
	require_once dirname(dirname(dirname(__FILE__))) . '/classes/search/solr/cSolr.php';

	$obj_Log = new cAmpleHarvestLog();
	
	$obj_Log->do_Log(cAmpleHarvestLog::C_STR_ACTION_DATA_INDEX_INFO,
		"Started HDFS Move",
		cAmpleHarvestLog::C_INT_LEVEL_INFO);

	$str_Return = true;

	while ($str_Return)
	{
		print("Processing Chunk...\n");
		ob_start();
		system(cConfig::C_STR_PATH_PHP . " move2HDFS_Chunk.php", $str_Return);
		ob_end_clean();
		print("Return - " . $str_Return . "\n");
	}
	
?>